/**
* 功能描述：图表工厂
* @author jin xiaohang
* @date 2022/9/26 15:21
* @version 1.0
*/
<template>
    <div v-if="options"
         :id="options.id"
         :class="options.className"
         :style="{height:options.height || '300px',width:options.width || '500px',padding:'5px'}">
    </div>
</template>

<script>
import YwBaseChartController from "./ywBaseChartController";

export default {
    name: "ywBaseChart",
    props:{
        options: {
            type: Object,
            default: () => {
            },
        },
        parent: {
            type: Object,
            default: () => {
            }
        }
    },
    data() {
        return {
            controller:null,
        }
    },
    created() {
        this.controller = YwBaseChartController.instance(this.options)
    },
    mounted() {
        this.controller.mounted(this.options)
    }
}
</script>

<style scoped>

</style>